package business;

import java.util.List;

import vo.Topic;

public interface TopicService {

	List<Topic> getAll();

	// get counts
	long getCount();

	long getCountByName(String name);

	long getCountByExpireDttm(String dttm);

	long getCountByNameAndExpireDttm(String name, String dttm);

	// /get topics
	List<Topic> getAll(int start, int pageSize);

	List<Topic> getAllByName(int start, int pageSize, String name);

	List<Topic> getAllByExpireDttm(int start, int pageSize, String expireDttm);

	List<Topic> getAllByNameAndExpireDttm(int start, int pageSize, String name, String expireDttm);

	// insert,delete ,modify,select
	void addTopic(String name);

	void addTopic(Topic topic);

	Topic getById(long id);

	void update(long id);

	void update(Topic topic);

	void delete(long id);

}
